package ezxpns.gui.menu;

import java.awt.event.*;
import javax.swing.*;
import ezxpns.Application.*;

public class MenuEdit
{
	public MenuEdit(AppKey app)
	{
		JMenu menu=new JMenu("Edit");
		menu.setMnemonic(KeyEvent.VK_E);
		{
			JMenuItem item=new JMenuItem();
			item.setAction(app.cmd.edit.editUndo);
			item.setMnemonic(KeyEvent.VK_U);
			menu.add(item);
		}
		{
			JMenuItem item=new JMenuItem();
			item.setAction(app.cmd.edit.editRedo);
			item.setMnemonic(KeyEvent.VK_R);
			menu.add(item);
		}
		{
			JMenuItem item=new JMenuItem();
			item.setAction(app.cmd.edit.editHop);
			item.setMnemonic(KeyEvent.VK_H);
			menu.add(item);
		}
		app.menubar.add(menu);
	}
}
